#include <stdio.h>
#include "StudentMain.h"

void BubbleSort(node* head)
{
	node* A, *B;
	stu* tmp;
	A = head->next;
	B = head->prve;
	while(head->prve != head)
	{
		while(A != head)
		{
			if(A->data->program < A->next->data->program)
			{
				tmp = A->data;
				A->data = A->next->data;
				A->next->data = tmp;	
			}
			A = A->next;	
		}

		B = B->prve;
	}	
}
